<style type="text/css">@import url("<?php echo base_url() . 'css/style.css'; ?>");</style>
<style type="text/css">@import url("<?php echo base_url() . 'development-bundle/themes/base/ui.all.css'; ?>");</style>
<style type="text/css">@import url("<?php echo base_url() . 'css/jquery.fancybox-1.3.4.css'; ?>");</style>

<script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/register.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/datetimepicker_css.js"></script>

<script type="text/javascript">
var uri = "<?php echo site_url('ajax')."/"; ?>";
var baseuri = "<?php echo base_url(); ?>";
var site = "<?php echo site_url();?>";
</script>

<script type="text/javascript">

$(document).ready(function(){
		
	$('#cdept,#cgrade').change(function() {
		
		var dept = $("#cdept").val();
		var grade = $("#cgrade").val();	
		
		$.ajax({
		type: 'POST',
		url: uri +'get_fee_type',
		data: "cdept="+ dept + "&cgrade=" + grade,
		success: function(data)
		{
		   document.getElementById("feebox").innerHTML = data;
		}
		})
		return false;
	});
	
/* end document */		
});

</script>

<style>
        .refresh{ border:1px solid #AAAAAA; color:#000; padding:2px 5px 2px 5px; margin:0px 2px 0px 2px; background-color:#FFF;}
		.refresh:hover{ background-color:#CCCCCC; color: #FF0000;}
		.refresh:visited{ background-color:#FFF; color: #000000;}	
</style>

<?php 
		
$atts1 = array(
	  'class'      => 'refresh',
	  'title'      => 'add cust',
	  'width'      => '600',
	  'height'     => '400',
	  'scrollbars' => 'no',
	  'status'     => 'yes',
	  'resizable'  => 'yes',
	  'screenx'    =>  '\'+((parseInt(screen.width) - 600)/2)+\'',
	  'screeny'    =>  '\'+((parseInt(screen.height) - 400)/2)+\'',
);

?>

<?php $flashmessage = $this->session->flashdata('message'); ?>

<div id="webadmin">
	<p class="message"> <?php echo ! empty($message) ? $message : '' . ! empty($flashmessage) ? $flashmessage : ''; ?> </p>
	
	<div id="errorbox" class="errorbox"> <?php echo validation_errors(); ?> </div>
	
	<fieldset class="field"> <legend> Tuition Transaction - Report </legend>
	<form name="modul_form" class="myform" id="form" method="post" action="<?php echo $form_action; ?>" target="_blank" >
				<table>
				
   <tr>	
   <td> <label for="cperiod"> Financial Year </label> </td> <td>:</td>
   <td> <?php $js = 'id=""'; echo form_dropdown('cperiod', $period, isset($default['period']) ? $default['period'] : '', $js); ?> <br /> </td>
   </tr>
				            	
  <tr>	
  <td> <label for="tstart"> Period </label> </td> <td>:</td>
  <td>  
  <input type="Text" name="tstart" id="d1" title="Start date" size="10" class="required" /> 
  <img src="<?php echo base_url();?>/jdtp-images/cal.gif" onclick="javascript:NewCssCal('d1','yyyymmdd')" style="cursor:pointer"/> &nbsp; - &nbsp;
						   
  <input type="Text" name="tend" id="d2" title="End date" size="10" class="required" /> 
  <img src="<?php echo base_url();?>/jdtp-images/cal.gif" onclick="javascript:NewCssCal('d2','yyyymmdd')" style="cursor:pointer"/> &nbsp; <br />
  </td> 						
  </tr>
					
    <tr>	
    <td> <label for="cdept"> Department </label> </td> <td>:</td>
    <td>  
    <?php $js = 'id="cdept"'; echo form_dropdown('cdept', $dept, isset($default['dept']) ? $default['dept'] : '', $js); ?> -
    <select id="cgrade" name="cgrade"> <option value=""> -- All -- </option> <option value="1">I</option> <option value="2">II</option> 
    <option value="3">III</option> </select> - <div style="float:right; margin-left:2px;" id="feebox"> </div> <br /> </td>
    </tr>
			
    <tr>	
    <td> <label for="cstatus"> Status </label> </td> <td>:</td>
    <td>  
     <select name="cstatus">
        <option value=""> -- All -- </option>
        <option value="0"> Back </option>
        <option value="1"> Normal </option>
        <option value="2"> Front </option>
     </select> &nbsp; <br /> </td>
    </tr>
    
    <tr>	
    <td> <label for="cuser"> User </label> </td> <td>:</td>
    <td>  
    <?php $js = 'id=""'; echo form_dropdown('cuser', $usercombo, isset($default['user']) ? $default['user'] : '', $js); ?>  &nbsp; </td>
    </tr>
    
    <tr>	
    <td> <label for="creport"> Report Type </label> </td> <td>:</td>
    <td>  
    <select name="creport"> 
    <option value="0"> Static Table </option> 
    <option value="1"> Summary </option>
    <option value="2"> Pivot </option> 
    </select> &nbsp; </td>
    </tr>
						
				</table>
				<p style="margin:15px 0 0 0; float:left;">
					<input type="submit" name="submit" class="button" title="SUBMIT" value=" SUBMIT " /> 
				</p>	
			</form>			  
	</fieldset>
</div>

